package me.sdevil507.biz.fruit.po;

import lombok.Data;
import lombok.EqualsAndHashCode;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdEntity;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @description: 成果子项目
 **/

@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "biz_fruit_subproject")
@Where(clause="is_del = 0")
public class FruitSubprojectrPO extends BaseJpaSnowflakeIdEntity {

    /**
     * 成果id
     */
    @Column
    private Long  fruitId;

    /**
     * 子项目名称
     */
    @Column
    private String name;

    /**
     * 负责人
     */
    @Column
    private String userName;


    /**
     * 负责人单位
     */
    @Column
    private String orgName;

    /**
     * 金额
     */
    @Column
    private String funds;

    /**
     * 是否删除
     */
    @Column(nullable = false)
    private Boolean  isDel= false;

    /**
     * 创建时间
     */
    @Column
    private Date createTime = new Date();

    /**
     * 更新时间
     */
    @Column
    private Date updateTime = new Date();

}

